package com.cleaningcloud.system.api;

import com.cleaningcloud.common.core.constant.SecurityConstants;
import com.cleaningcloud.common.core.constant.ServiceNameConstants;
import com.cleaningcloud.common.core.domain.R;
import com.cleaningcloud.system.api.domain.SysUser;
import com.cleaningcloud.system.api.factory.RemoteUserFallbackFactory;
import com.cleaningcloud.system.api.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 数据字典服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteDictDataService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface RemoteDictDataService
{
    /**
     * 通过用户名查询用户信息
     *
     * @param dictType 用户名
     * @return 结果
     */
    @GetMapping("/dict/data/{dictType}")
    R<LoginUser> getUserInfo(@PathVariable("dictType") String dictType, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);


}
